<div id="content">
	
			<div id="slideShow">
				<div id="tools">		
					<ul>
					<?php 
					
					// Affichage du menu
					foreach ($data->tools as $item => $act) {
						print "<li><a href=\"$act\"><img src=\"".dirname($_SERVER['REQUEST_URI']) ."/images/".$data->toolsimg[$item]."\" alt=\"$item\" title=\"$item\" id=\"$item\"/></a></li>\n";
					}?>
					</ul>
				</div>
				<div id="content_node">
					<?php # mise en place de la vue partielle : le contenu central de la page  
					# Mise en place des deux boutons
					
					print "<a id=\"prev\" href=\"index.php?controller=photo&action=prec&imgId=".$data->prevImg->getId()."&size=$size&categorie=".$data->categorie."\"><img alt=\"Prev\" src=\"".dirname($_SERVER['REQUEST_URI']) ."/images/prev.png\" /></a> ";
					?>
					<?php
					# Affiche l'image avec une reaction au click
					print "<a id=\"img\" href=\"index.php?controller=photo&action=zoom&imgId=$imgId&size=".($size*1.25)."\">";
					// Réalise l'affichage de l'image
					$imgURL = ImageDAO::getUrlPath()."/".$data->img->getPath();
					$comment = $data->img->getComment();
					print "<img src=\"$imgURL\" title=\"".$comment."\" alt=\"".$comment."\" width=\"$size\"></a>";
					?>
					<?php
						print "<a id=\"next\" href=\"index.php?controller=photo&action=next&imgId=".$data->nextImg->getId()."&size=$size&categorie=".$data->categorie."\"><img alt=\"Next\" src=\"".dirname($_SERVER['REQUEST_URI']) ."/images/next.png\" /></a> ";
					?>
				</div>
			</div>
			<?php 
			$infos = "";
			$infos.="		<div id=\"filtre\"> ";
			$infos.="			<form action=\"index.php?controller=photo&action=filterPhoto&categorie=".$categorie."\" method=\"post\" enctype=\"multipart/form-data\"> ";
			$infos.="				<label for=\"category\">Trier par:</label> ";
			$infos.="				<br /> ";
			$infos.="				<br /> ";
			$infos.="				<label for=\"categoryFilter\">Par cat&eacute;gorie:</label>";
			$infos.="				<select name=\"category\" id=\"category\" > ";
			$infos.="					<optgroup label=\"Categorie actuelle\"> ";
			if ($data->categorie==NULL){
				$showCategorie="Aucune";
			}else{
				$showCategorie=$data->categorie;
			}
			$infos.="						<option value=\"".$data->categorie."\" selected>".$showCategorie."</option>";
			$infos.="					</optgroup> ";
			$infos.="					<optgroup label=\"Toutes\"> ";
			$infos.="						<option value=\"".NULL."\">Aucune</option>";
			foreach($data->categories as $category){
			$infos.="						<option value=\"$category\">$category</option>";
			}
			$infos.="					</optgroup> ";
			$infos.="				</select><br/><br/>";
			$infos.="				<input type=\"submit\" value=\"Filtrer\" /> ";
			$infos.="			</form>";
			$infos.="		</div> ";
			$infos.="		<div id=\"infos\"> ";
			$infos.="				<form action=\"index.php?controller=photo&action=updatePhoto&imgId=".$imgId."\" method=\"post\" enctype=\"multipart/form-data\"> ";
			$infos.="				<label for=\"category\">Categorie:</label> ";
			$infos.="				<br /> ";
			$infos.="				<br /> ";
			$infos.="				<select name=\"category\" id=\"category\" > ";
			$infos.="					<optgroup label=\"Categorie actuelle\"> ";
			$infos.="						<option value=".$data->select->getCategory()." selected>".$data->select->getCategory()."</option>";
			$infos.="					</optgroup> ";
			$infos.="					<optgroup label=\"Toutes\"> ";
			foreach($data->categories as $category){
			$infos.="						<option value=\"$category\">$category</option>";
			}
			$infos.="					</optgroup> ";
			$infos.="				</select> ";
			$infos.="				OU ";
			$infos.="				<input type=\"textarea\" name=\"category2\" id=\"category2\">";
			$infos.="				<br /> ";
			$infos.="				<br /> ";
			$infos.="				<label for=\"comment\">Commentaire:</label> ";
			$infos.="				<br /> ";
			$infos.="				<br /> ";
			$infos.="				<textarea name=\"comment\" id=\"comment\" rows=\"10\" cols=\"50\" >".$data->select->getComment()."</textarea> ";
			$infos.="				<br /> ";
			$infos.="				<br /> ";
			$infos.="				<input type=\"submit\" name=\"submit\" value=\"Enregistrer\" /> ";
			$infos.="				</form> ";
			$infos.="				<br /> ";
			$infos.="				<label for=\"Vote\">Vos votes:</label> ";
			$infos.="				<span id=\"like\">".$data->note->getPositive()."</span><a id=\"notePos\" href=\"index.php?controller=photo&action=updateNote&imgId=".$imgId."&val=POS\"><img src=".dirname($_SERVER['REQUEST_URI']) ."/images/like.png width=\"32px\"></a> ";
			$infos.="				<a id=\"noteNeg\" href=\"index.php?controller=photo&action=updateNote&imgId=".$imgId."&val=NEG\"> <img src=".dirname($_SERVER['REQUEST_URI']) ."/images/unlike.png width=\"32px\"></a> <span id=\"unlike\">".$data->note->getNegative()."</span>";
			$infos.="		</div>";
			if($size<=600)
				print $infos;
			?>
				<?php require_once("model/BasePdo.php");?>
				<?php require_once("model/image.php");?>
				<?php require_once("model/note.php");?>	

</div>